package com.huitone.gddw.dao.worktable.paramconfigmanage;

import java.util.List;
import java.util.Map;

import com.huitone.gddw.dao.entity.ServiceCodeDef;
import com.huitone.gddw.service.dto.ServiceCodeDefDTO;

public interface IServiceCodeDefDao {

    int insert(ServiceCodeDef record);
    int save(ServiceCodeDef record);

    int delete(String serviceCode);

    int updateByPrimaryKeySelective(ServiceCodeDef record);
    int updateByPrimaryKey(ServiceCodeDef record);
    
    ServiceCodeDef selectByPrimaryKey(String serviceCode);
    
//    List<ServiceCodeDef> selectPage(Map<String,Object> map);
    List<ServiceCodeDefDTO> selectPage(Map<String,Object> map);
    
    ServiceCodeDef toUpdate(String serviceCode);
    
    List<ServiceCodeDef> getRecord(Map<String,Object> map);
    
    int selectCount(Map<String,Object> map);
    
    List<ServiceCodeDef>getAll();
    
    List<ServiceCodeDef> getBySvrNode(String svrNode);
    /**
     * 获取短信类型
     * @return
     */
    List<Map<String,Object>>getAllServiceName();
}